import request from "@/utils/request";
export function getSortPage(currentPage){
    return request({
        url:process.env.VUE_APP_WEB_API +'/metas/getSort/'+currentPage,
        method:"get",


    })
}
//添加分类
export function addBlogSort(params) {
    return request({
        url: process.env.VUE_APP_WEB_API + '/metas/addSort',
        method: 'post',
        data: params
    })
}
//删除分类
export function delBlogSort(mid){
    return request({
        url: process.env.VUE_APP_WEB_API + '/metas/del/'+mid,
        method: 'post',

    })
}

//获取分类信息
export function getBlogSort(params){
    return request({
        url: process.env.VUE_APP_WEB_API + '/metas/get',
        method: 'Post',
        data:params
    })
}

//编辑分类
export function editBlogSort(params){
    return request({
        url: process.env.VUE_APP_WEB_API + '/metas/editSort',
        method: 'Post',
        data:params

    })
}